require("common-css");
require("hot-css");

import {
  loader
} from "hobbit";
import {
  GetSingerInfo
} from "request";
import {
  initCommon
} from "common";
const template = require("template");
const app = {
  init() {
    initCommon();
    this.bind();
  },
  bind() {
    
  },
  search() {
    var params = {};
    params.pageIndex = app.currNum;
    params.pageSize = 20;
    GetSingerInfo(params, (res) => {
      if (res) {
        $("#j-singer").append(template("goods-list-temp", {
          list: res
        }));
        if (res.length < 20) {
          $('.see-more').hide();
        }
        app.currNum++;
      }
      loader.close();
    });
  }
}
app.init();